package multimedia;

import java.awt.Graphics;

public class Placer {
	
	
	static final int X_FOCUS=100;
	static final int Y_FOCUS=100;
	static final int DY=40;
	static final int DX=20;
	
	private int positioning=0;
	private VerticalPlacer vPlacer=new VerticalPlacer();
	private DiagonalPlacer dPlacer= new DiagonalPlacer();

	public void place(Graphics graphics, String data, int slot) {
		
		switch (positioning) {
		case 0:
			vPlacer.place(graphics, data, slot);
			break;
		case 1:
			dPlacer.place(graphics, data, slot);
			break;
		}
	}
	
	public void setVertical(){
    	positioning=0;
    }
    public void setDiagonal(){
    	positioning=1;
    }
		
}